<#ibiztemplate>
TARGET=PSAPPDATAENTITY
</#ibiztemplate>
<#ibizinclude>../../../@MACRO/FUNC.ts</#ibizinclude>
<#assign langrestype = 'EN'/>
<#assign emptyText = 'No data.'>
export default {
<#--  实体属性输出  -->
<#if item.getAllPSAppDEFields()??>
  fields: {
  <#list item.getAllPSAppDEFields() as field>
    ${field.getPSDEField().getCodeName()?lower_case}: "<@getLogicNameLanguage field.getPSDEField() langrestype />",
  </#list>
  },
</#if>
<#--  实体视图输出  -->
<#if item.getAllPSAppViews()??>
	views: {
		<#list item.getAllPSAppViews() as obj>
		${obj.getPSDEViewCodeName()?lower_case}: {
			caption: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
      		title: "<@getTitleLanguage obj langrestype />",
		},
		</#list>
	},
</#if>
<#--  实体部件输出  -->
<#if item.getPSControls()??>
<#assign ctrltypes = ['FORM', 'GRID', 'SEARCHFORM', 'TOOLBAR', 'TREEVIEW', 'LIST', 'CHART', 'KANBAN', 'DATAVIEW', 'GANTT', 'TREEGRIDEX', 'CALENDAR']>
<#list ctrltypes as ctrltype>
<#list item.getPSControls() as ctrl>
<#if ctrl.getControlType() == ctrltype>
<#if !P.exists(ctrltype, ctrl.getCodeName(), "_class_")>
	${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}: {
		<#if ctrl.getControlType() == 'FORM' || ctrl.getControlType() == 'SEARCHFORM'>
		details: {
			<#list ctrl.getAllPSDEFormDetails() as obj>
			${obj.name?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>", 
			</#list>
		},
		</#if>
		<#if ctrl.getControlType() == 'LIST' || ctrl.getControlType() == 'GRID' || ctrl.getControlType() == 'CHART' || ctrl.getControlType() == 'KANBAN' || ctrl.getControlType() == 'DATAVIEW' || ctrl.getControlType() == 'GANTT' || ctrl.getControlType() == 'TREEGRIDEX' || ctrl.getControlType() == 'CALENDAR'  >
		nodata: "<@getEmptyTextLanguage ctrl langrestype emptyText/>",
		</#if> 
		<#if ctrl.getControlType() == 'GRID'>
		columns: {
			<#if ctrl.getAllPSDEGridColumns()??>
			<#list ctrl.getAllPSDEGridColumns() as obj>
			${obj.getName()?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
			</#list>
			</#if>
		},
      <#if ctrl.getPSDEDataExport?? && ctrl.getPSDEDataExport()?? >
    exportColumns: {
        <#if ctrl.getPSDEDataExport().getPSDEDataExportItems()??>
			    <#list ctrl.getPSDEDataExport().getPSDEDataExportItems() as obj>
			${obj.getName()?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
			    </#list>
        </#if>
    },
      </#if>
		</#if>
    <#if ctrl.getControlType() == 'TREEVIEW'>
		nodes: {
			<#if ctrl.getPSDETreeNodes()??>
			<#list ctrl.getPSDETreeNodes() as obj>
        <#if obj.getTreeNodeType() == 'STATIC'>
			${obj.getNodeType()?lower_case}: "<@getNameLanguage obj langrestype />",
        </#if>
			</#list>
			</#if>
		},
    </#if>
		<#if ctrl.getControlType() == 'TOOLBAR'>
	    <#if ctrl.getAllPSDEToolbarItems()??>
		<#list ctrl.getAllPSDEToolbarItems() as obj>
		${obj.getName()?lower_case}: {
			caption: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
			tip: "<#ibizinclude>../../../@MACRO/TIPLANG.ts</#ibizinclude>",
		},
		</#list>
		</#if>
		</#if>
		<#--  部件界面行为  -->
		<#if ctrl.getPSUIActions?? && ctrl.getPSUIActions()??>
		uiactions: {
			<#list ctrl.getPSUIActions() as obj>
        <#if obj.getPSAppDataEntity?? && obj.getPSAppDataEntity()??>${obj.getPSAppDataEntity().getCodeName()?lower_case}_</#if>${obj.getUIActionTag()?lower_case}: "<#ibizinclude>../../../@MACRO/CAPTIONLANG.ts</#ibizinclude>",
			</#list>
		},
		</#if>
	},
</#if>
</#if>
</#list>
</#list>
</#if>
};